//package com.qcby.teacher;
//
//import com.qcby.teacher.config.TeachSample;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.ResponseBody;
//import org.springframework.web.bind.annotation.RestController;
//
//@RestController
//public class TeachController {
//
//    @RequestMapping("/teach")
//    @ResponseBody
//    public String findCorrectCount() {
//        TeachSample teachSample = new TeachSample();
//        try {
//            String accessToken = teachSample.getAccessToken(); // 获取 Access Token
//            // 构建请求体，发送用户请求消息
//            teachSample.sendUserRequest(accessToken, "我想要一份出师表的教案");
//            return "Request sent successfully.";
//        } catch (Exception e) {
//            e.printStackTrace();
//            return "Error occurred while sending request.";
//        }
//    }
//}